package components.editor
{
	import UIFree.ObjectEvent;
	import UIFree.uif_component;
	
	import classes.Commands.c_baseCommand;
	import classes.c_events;
	
	import components.c_pcomponent;
	
	import flash.display.DisplayObject;
	
	public class c_imageLayer extends c_pcomponent {
		public function c_imageLayer(parent:uif_component) {
			super(parent, 'imagelayer');
		}
		
		override public function addChild(child: DisplayObject): DisplayObject {
			if (child is c_editedElement)
				(child as c_editedElement).setParent(this)
			else super.addChild(child);
			
			return child;
		}		
	}
}